import request from '@/utils/request'

// 查询参数列表
export function listApi(query) {
  return request({
    url: '/device/data',
    method: 'get'
  })
}

//绑定设备
export function bindevice(data) {
  return request({
    url: '/device/bind',
    method: 'post',
    data
  })
}
// 查询设备绑定列表
export function listApi2(data) {
  return request({
    url: '/device/searchDeviceBind',
    method: 'post',
    data
  })
}
// 取消设备绑定
export function unbind(parms) {
  return request({
    url: '/device/unbind/'+parms,
    method: 'get',
  })
}

// 查询设备未绑定列表
export function findunbind() {
  return request({
    url: '/device/findunbind',
    method: 'get',
  })
}

